package com.znufe.exam.viewmodel.admin.student;

import com.znufe.exam.base.BasePage;
import lombok.Data;

@Data
public class StudentPageRequestVM extends BasePage {

    private String className;

    private String stuName;

    public static StudentPageRequestVM wipeBlank(StudentPageRequestVM model) {
        if (model.getStuName() != null) {
            model.setStuName(model.getStuName().trim());
        }
        if (model.getClassName() != null) {
            model.setClassName(model.getClassName().trim());
        }
        return model;
    }
}
